package uebung9.pme;

public class Add extends Value{

	double first=0, second=0, result=0;
	public Add(Value a, Value b) {
		first=a.evaluate();
		second=b.evaluate();
		result=first + second;
	}
    public double evaluate(){
    	return result;
    }
}
